#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common.emum;

/**
 * Description: 登录状态
 *
 * @author wupanhua
 * @date 2019/8/6 15:28
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
public enum LoginEnum implements DadyEnum {
    /**
     * 登录成功 200 状态码
     */
    SUCCESS(200, "登录成功"),
    /**
     * 账户或密码错误 101 状态码
     */
    FAIL(101, "账户或密码错误"),
    /**
     * 校验不通过 102 状态码
     */
    VALID(102, "校验不通过"),
    /**
     * 用户无角色 103 状态码
     */
    NOROLE(103, "用户无角色"),
    /**
     * 邮箱未验证 105 状态码
     */
    EMAIL_UNVERIFIED(105, "邮箱未验证"),
    /**
     * 手机号未验证 106 状态码
     */
    PHONE_UNVERIFIED(106, "手机号未验证"),
    /**
     * 用户被禁用 107 状态码
     */
    DISABLE(107, "用户被禁用"),
    /**
     * 退出成功 104 状态码
     */
    LOGOUT(104, "退出成功");

    /**
     * 状态码
     */
    private Integer code;
    /**
     * 信息
     */
    private String msg;

    LoginEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
